package com.yyp.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yyp.bean.StaffInfo;
import com.yyp.dao.StaffInfoDao;
import com.yyp.service.ManagerService;
import com.yyp.service.StaffInfoService;

@Service
public class StaffInfoServiceImpl implements StaffInfoService {
	@Resource
	StaffInfoDao staffInfoImpl;

	//
	// public void del(String names) {

	// StaffInfoImpl.delete(names);
	// }

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.StaffInfoService#del(int)
	 */
	public void del(int id) {

		staffInfoImpl.delete(id);
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.StaffInfoService#find(java.lang.Integer)
	 */
	public StaffInfo find(Integer id) {
		return staffInfoImpl.find(id);
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.StaffInfoService#find(java.lang.String)
	 */
	public StaffInfo find(String name) {
		return staffInfoImpl.find(name);

	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.StaffInfoService#findAll()
	 */
	public List<StaffInfo> findAll() {
		return staffInfoImpl.findAll();
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.StaffInfoService#save(com.yyp.bean.StaffInfo)
	 */
	public void save(StaffInfo entity) {
		staffInfoImpl.save(entity);
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.StaffInfoService#updata(com.yyp.bean.StaffInfo)
	 */
	public void updata(StaffInfo entity) {
		staffInfoImpl.updata(entity);
	}

}
